import { sm2 } from 'sm-crypto';
/**
 * sm2 加密方法
 * @param data
 * @returns {*}
 */
export function encrypt(data) {
  try {
    return sm2.doEncrypt(data, '04de309c6aaa65ca0aebaf920b1bee6c88e2786fc267bc0cd7552c4c599a392257dbc0e25c29596cdb2876ac496a41d299f01e9052bb17fc04fe343e786ffc790f', 0);
  } catch {
    return '';
  }
}
